package com.hong.spring.propertis;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Auther: csh
 * @Date: 2020/8/10 14:39
 * @Description:
 */
@Component
public class User {
    @Value("${name}")
    private String userName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
